import java.lang.reflect.Array;
import java.util.Arrays;

public class Text {
    public static void main(String[] args) {
        int[] arr1={1,2,3,4,5,6};
        int[] arr2={9,8,7,6,3,1};
        System.out.println(arr1[0]);
        System.out.println(arr1[4]);
        System.out.println(arr1.length);
        for (int i = 0; i < arr1.length; i++) {
            System.out.print(arr1[i]+" ");

        }
        System.out.println();
        System.out.println("=================");
        for(int x:arr1){
            System.out.print(x+" ");
        }
        System.out.println();
        System.out.println("==================");

       String ret= Arrays.toString(arr1);
        System.out.println(ret);

        Arrays.sort(arr2);
        for(int y:arr2){
            System.out.print(y+" ");
        }
    }
    public static void main2(String[] args) {
        int[] arr1=new int[10];
        boolean[] arr2=new boolean[10];
        String[] arr5=new String[10];
        char[] arr3=new char[10];
        String str="hello";
        String str1=new String("good");
        int[] arr4=new int[]{1,2,3,4,5,6};
    }
    public static void hanNuoTa(int n,char pose1,char pose2,char pose3){
        if(n==1){
            move(pose1,pose3);
            return;
        }
        hanNuoTa(n-1,pose1,pose3,pose2);
        move(pose1,pose3);
        hanNuoTa(n-1,pose2,pose1,pose3);

    }
    public static void move(char pose1,char pose2){
        System.out.print(pose1+"-->"+pose2+" ");

    }
    public static void main1(String[] args) {
        hanNuoTa(1,'A','B','C');
        System.out.println();
        hanNuoTa(2,'A','B','C');
        System.out.println();
        hanNuoTa(3,'A','B','C');
    }
}
